<template>
  <div id="app">
    {{message}}
    <router-view/>
  </div>
</template>

<script>
export default {
  data: function() {
    return {
      name: 'App',
      message : '初始值',
      msgHtml : "<p>html解释</p>"
    }
  },
  created: function(){
    this.message = "钩子改变初始值";
    console.log("1242141");
  }


}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
